CC=gcc
CPP=g++
INCLUDES=
OUT=zapoctak
LIBS=-lSDL -lSDL_image -lSDL_ttf -lm
FILES=MyButton.o MyEnemies.o MyEnemy.o MyEngine.o MyGame.o MyInfobar.o MyMenu.o MyPlayer.o MyShots.o MyShot.o MyUniversal.o MyMessages.o main.o MyScenery.o MySplashScreen.o MyPlayerActionManager.o

#CFLAGS+= -Wall -pedantic 
CFLAGS+=`sdl-config --cflags` -O2

all: $(OUT)
	cp ./$(OUT) ../
	
	@echo "make finished on `date`"
$(OUT): $(FILES)
	$(CPP) $(CFLAGS) $(FILES) $(LIBS) -o  $@ 
	

%.o:	%.cpp
	$(CPP) $(CFLAGS) $(INCLUDES) -c $<


clean:
	rm -f *.o $(OUT)

strip: $(OUT)
	strip ./$(OUT)
